package 
{
	import mx.controls.ToolTip;

	public class HtmlToolTip extends ToolTip
	{
		public function HtmlToolTip()
		{
			super();
		}
		
		public function setHtmlText(str:String):void
		{
			text=str;
			this.commitProperties();
		}
		
		override protected function commitProperties():void
		{
			super.commitProperties();
			this.textField.htmlText=text;
		}
		
		override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
		{
			super.updateDisplayList(unscaledWidth,unscaledHeight);
			//this.
			//this.graphics.beginFill(0x66ff00,0.8);
			//this.graphics.drawRect(0,0,width,height);
			//this.graphics.endFill();
		}
	}
}